<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>网站配置 - bootstrap中文后台管理系统模板</title>
    <link href="/static/admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/admin/css/fonts.css" rel="stylesheet">
    <link href="/static/admin/css/style.css" rel="stylesheet">
</head>

<body>
<!--页面主要内容-->
<main class="ftdms-layout-content">
    <div class="container-fluid" style="margin-bottom:90px;">
        <div class="row" style="margin-top:15px;">
            <div class="col-lg-12">
                <div class="card">
                    <ul class="nav nav-tabs page-tabs">
                        <li class="active"><a href="javascript:void(0)">编辑轮播</a> </li>
                        <li> <a href="/admin/ad?action=manager">查看管理轮播</a> </li>
                    </ul>
                    <div class="tab-content">
                        <div class="tab-pane active">

                            <form action="/admin/ad?action=editupdate" method="post"  enctype="multipart/form-data" name="edit-form" class="edit-form">
                                <div class="form-group">
                                    <input type="hidden" name="id" value="${ad.id}">
                                    <input type="hidden" name="oldimg" value="${ad.img}">
                                    <label for="web_site_title">轮播标题</label>
                                    <input class="form-control" type="text" id="web_site_title" name="title" value="${ad.title}" >
                                </div>

                                <div class="form-group">
                                    <label for="web_site_icp">网址</label>
                                    <input class="form-control" type="text" value="${ad.url}" id="web_site_icp" name="url" placeholder="网址" >
                                </div>

                                <div class="form-group">
                                    <label for="web_site_file">图片</label>
                                    <input class="form-control" type="file" id="web_site_file" name="img" >
                                    <img src="/upload/ad/${ad.img}" style="width:200px" alt="">
                                </div>
                                <div class="form-group">
                                    <label for="web_site_sort">排序</label>
                                    <input class="form-control" type="text" id="web_site_sort" name="sort" value="${ad.sort}" placeholder="数字，数字大就在前边" >
                                </div>
                                <div class="form-group">
                                    <label class="btn-block" for="web_site_status">是否显示</label>
                                    <label class="ftdms-switch switch-solid switch-primary">
                                        <input type="checkbox" name="isshow" value="1" ${ad.shows?string("checked","")}>
                                        <span></span>
                                    </label>
                                </div>
                                <div class="form-group">
                                    <button type="submit" class="btn btn-primary m-r-5">确 定</button>
                                    <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);return false;">返 回</button>
                                </div>
                            </form>

                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</main>
<!--End 页面主要内容-->
</body>
</html>